package com.kaili.common;

import com.kaili.utils.Tools;
import io.swagger.annotations.ApiModelProperty;

import java.util.Map;

public class PageRequest {
    @ApiModelProperty(value = "当前页", required = true, example = "1")
    public Integer cur;
    @ApiModelProperty(value = "页数量", required = true, example = "20")
    public Integer pageSize;
    @ApiModelProperty(value = "查询参数")
    Map search;

    public Integer getCur() {
        return cur;
    }

    public void setCur(Integer cur) {
        this.cur = cur;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Map getSearch() {

        return Tools.trimHashMap(search);
    }

    public void setSearch(Map search) {
        this.search = search;
    }
}
